package com.bwie.service.imp;

import com.bwie.Goods;
import com.bwie.dao.GoodsMapper;
import com.bwie.service.GoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class GoodsServiceImp implements GoodsService {
    @Autowired
    private GoodsMapper goodsMapper;

    @Override
    public int add(Goods goods) {
        return goodsMapper.add(goods);
    }
}
